﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiYiTong.Rocket.Model
{
    public class CreateOrderReq
    {
        /// <summary>
        /// 收货地址id
        /// </summary>
        public long addressid { get; set; }
        /// <summary>
        /// 支付方式 0  线下支付 1  线上支付
        /// </summary>
        public int pay_type { get; set; }
        /// <summary>
        /// 商品总金额
        /// </summary>
        public decimal total_money { get; set; }
        /// <summary>
        /// 发票 0 不开发票 >0 发票id
        /// </summary>
        public long invoice_id { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string remark { get; set; }

        public List<OrderDetailReq> goodlist { get; set; }
    }

    public class OrderDetailReq
    {
        /// <summary>
        /// 购物车id
        /// </summary>
        public long shoppingcart_id { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public long goods_id { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public decimal amount { get; set; }
        /// <summary>
        /// 单个商品总价格
        /// =单价*数量*（1+会员加价比例）
        /// </summary>
        public decimal total_money { get; set; }
    }
}
